﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace commodity.Models
{
    public class GoodsInformation
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int id { get; set; }
        [Required]
        [MaxLength(32)]
        public string PropertyName { get; set; }
        public string Value { get; set; }
        [Required]
        public StateProperty state { get; set; }
        [ForeignKey("GoodsId")]
        public int GoodsId { get; set; }
        public Goods goods { get; set; }
    }
}
